GOBJECT_INTROSPECTION_MIN_VERSION=0.6.9
GJS_MIN_VERSION=0.6
MUTTER_MIN_VERSION=2.29.1
-GTK_MIN_VERSION=2.20.0
+GTK_MIN_VERSION=2.18.0
# Collect more than 20 libraries for a prize!
PKG_CHECK_MODULES(MUTTER_PLUGIN, gio-unix-2.0 dbus-glib-1
# please, keep this sorted alphabetically
tray_source = \
+ gtk-compat.h \
tray/na-tray-child.c \
tray/na-tray-child.h \
tray/na-tray-manager.c \
$(shell_built_sources) \
$(shell_public_headers_h) \
gnome-shell-plugin.c \
+ gtk-compat.h \
shell-app.c \
shell-app-private.h \
shell-app-system.c \
--- /dev/null
+#ifndef __GTK_COMPAT_H__
+#define __GTK_COMPAT_H__
+
+#include <gtk/gtk.h>
+
+/* Provide a compatibility layer for accessor functions introduced
+ * in GTK+ 2.20 which we need to build with GSEAL_ENABLE.
+ * That way it is still possible to build with GTK+ 2.18 when not
+ * using GSEAL_ENABLE
+ */
+
+#if !GTK_CHECK_VERSION(2, 20, 0)
+
+#define gtk_widget_get_realized(w) GTK_WIDGET_REALIZED (w)
+#define gtk_widget_get_mapped(w) GTK_WIDGET_MAPPED (w)
+
+#endif /* GTK_CHECK_VERSION(2, 20, 0) */
+
+#endif /* __GTK_COMPAT_H__ */
#include <clutter/x11/clutter-x11.h>
#include "shell-embedded-window-private.h"
+#include "gtk-compat.h"
/* This type is a subclass of GtkWindow that ties the window to a
* ShellGtkEmbed; the window is reparented into the stage
#include "config.h"
#include "shell-embedded-window-private.h"
+#include "gtk-compat.h"
#include <clutter/glx/clutter-glx.h>
#include <clutter/x11/clutter-x11.h>
#include <string.h>
#include "na-tray-child.h"
+#include "gtk-compat.h"
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <libintl.h>
#include "na-tray-manager.h"
+#include "gtk-compat.h"
#include <gdkconfig.h>
#include <glib/gi18n-lib.h>